import Layout from '@/layout'
export default [
  {
    path: '/marketing', // 此处不用操作
    name: 'marketing', // 此处用于书写路由名称
    component: Layout,
    redirect: '/marketing/seckill_activity',
    meta: { title: '营销', icon: '专题' },
    children: [
      {
        path: 'seckill_activity',
        name: 'seckill_activity',
        component: () => import('@/views/marketing/components/seckill_activity'),
        meta: { title: '秒杀活动列表', icon: '闹钟' }
      },
      {
        path: 'coupon',
        name: 'coupon',
        component: () => import('@/views/marketing/components/coupon'),
        meta: { title: '优惠券列表', icon: '优惠券' }
      },
      {
        path: 'brand',
        name: 'brand',
        component: () => import('@/views/marketing/components/brand'),
        meta: { title: '品牌推荐', icon: '品牌管理' }
      },
      {
        path: 'new_arrivals',
        name: 'new_arrivals',
        component: () => import('@/views/marketing/components/new_arrivals'),
        meta: { title: '新品推荐', icon: '新品' }
      },
      {
        path: 'popular',
        name: 'popular',
        component: () => import('@/views/marketing/components/popular'),
        meta: { title: '人气推荐', icon: '人气热度' }
      },
      {
        path: 'special',
        name: 'special',
        component: () => import('@/views/marketing/components/special'),
        meta: { title: '专题推荐', icon: '专题' }
      },
      {
        path: '/addCoupon',
        name: 'addCoupon',
        component: () => import('@/views/marketing/components/addCoupon'),
        meta: { title: '添加优惠券' },
        hidden: true
      },
      {
        path: '/seckillTime',
        name: 'seckillTime',
        component: () => import('@/views/marketing/components/seckillTime'),
        meta: { title: '秒杀时间段列表' },
        hidden: true
      }
    ]
  }
]
